/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dotexe.webframework.core.clientactions;

import org.json.JSONException;
import org.json.JSONObject;

/**
 *
 * @author jovan.tomasevic
 * complete
 */
/// <summary>
/// Configuration for starting use case
/// </summary>
public class StartUseCaseConfiguration extends ClientActionConfiguration{
    public StartUseCaseConfiguration() throws JSONException
    {
        super();
        this.put("ApplicationName", JSONObject.NULL);
        this.put("ElementID",JSONObject.NULL);
        this.put("HolderID",JSONObject.NULL);
        this.put("Modal", false);
        this.put("ShowLoading",false);
        this.setType("StartUseCase");
    }
    public String getApplicationName() throws JSONException{
        return this.getString("ApplicationName");
    }
    public void setApplicationName(String value) throws JSONException{
        if(value == null){
            this.put("ApplicationName", JSONObject.NULL);
        }
        else{
            this.put("ApplicationName", value);
        }
    }


    public String getElementID() throws JSONException{
        return this.getString("ElementID");
    }
    public void setElementID(String value) throws JSONException{
        if(value == null){
            this.put("ElementID", JSONObject.NULL);
        }
        else{
            this.put("ElementID", value);
        }
    }


    public String getHolderID() throws JSONException{
        return this.getString("HolderID");
    }
    public void setHolderID(String value) throws JSONException{
        if(value == null){
            this.put("HolderID", JSONObject.NULL);
        }
        else{
            this.put("HolderID", value);
        }
    }


    public Boolean getModal() throws JSONException{
        return this.getBoolean("Modal");
    }
    public void setModal(Boolean value) throws JSONException{
        if(value == null){
            this.put("Modal", JSONObject.NULL);
        }
        else{
            this.put("Modal", value);
        }
    }


    public Boolean getShowLoading() throws JSONException{
        return this.getBoolean("ShowLoading");
    }
    public void setShowLoading(Boolean value) throws JSONException{
        if(value == null){
            this.put("ShowLoading", JSONObject.NULL);
        }
        else{
            this.put("ShowLoading", value);
        }

    }
}

